 <?php $this->widget('bootstrap.widgets.TbBreadcrumbs', array(
    'links'=>array(Link::model()->findByPk($_REQUEST['cat'])->nama,'Lihat'),
));

?>

<br />
<h4>Lihat Konsultasi Hukum</h4>
<hr/>


 <script type="text/javascript">
 $(document).ready(function(){
	$("#btn-pertanyaan").click(function(){
		$("#div-konsultasi").show();
	});
 
 });
 </script>
 
 <div class="col-md-11">


    <div class="col-md-11" style="margin-top:10px;">
	
				
				<div class="spanpengaduan">
				
				<div class="form">
				<form id="horizontalForm" class="form-horizontal">
					<div class="control-group ">
					<label class="control-label required" for="Pengaduan_nama_pelapor">
					Nama
					</label>
					<div class="controls">
					<input class="span5" type="text" value="<?php echo $model->nama; ?>" maxlength="100" name="KonsultasiHukum[nama]" readonly="readonly">
					</div>
					</div>
					
					
					<div class="control-group ">
					<label class="control-label required" for="Pengaduan_nama_pelapor">
					Alamat
					</label>
					<div class="controls">
					<input class="span5" type="text" value="<?php echo $model->alamat; ?>" maxlength="100" name="KonsultasiHukum[alamat]" readonly="readonly">
					</div>
					</div>
					
					
					<div class="control-group ">
					<label class="control-label required" for="Pengaduan_nama_pelapor">
					Email
					</label>
					<div class="controls">
					<input class="span5" type="text" value="<?php echo $model->email; ?>" maxlength="100" name="KonsultasiHukum[email]" readonly="readonly">
					</div>
					</div>
					
					
					<div class="control-group ">
					<label class="control-label required" for="Pengaduan_nama_pelapor">
					Telp
					</label>
					<div class="controls">
					<input class="span5" type="text" value="<?php echo $model->telp; ?>" maxlength="100" name="KonsultasiHukum[telp]" readonly="readonly">
					</div>
					</div>
					
					
					<div class="control-group ">
					<label class="control-label required" for="Pengaduan_nama_pelapor">
					Judul
					</label>
					<div class="controls">
					<input class="span5" type="text" value="<?php echo $model->judul; ?>" maxlength="100" name="KonsultasiHukum[judul]" readonly="readonly">
					</div>
					</div>
					
					<div class="control-group ">
					<label class="control-label required" for="Pengaduan_nama_pelapor">
					Judul
					</label>
					<div class="controls">
					<textarea id="Pengaduan_isi_pengaduan" class="span5" name="KonsultasiHukum[isi]" readonly="readonly"><?php echo $model->isi; ?></textarea>
					</div>
					</div>
				</form>
				</div>	

				<br /><br /> 
			
				
				<strong>Tanggapan<hr class="hrpengumuman" /><br /></strong>	
                <div class="spanpengaduan" id="div-konsultasi">
                
                <form action="<?php echo Yii::app()->createUrl('admin/konsultasiHukum/reply'); ?>" method="post">
                Nama
                <div class="controls">
				<input id="Pengaduan_nama_pelapor" class="span3" type="hidden" name="id" value=<?php echo $model->id; ?> maxlength="200">
                <input id="Pengaduan_nama_pelapor" class="span3" type="text" name="nama" maxlength="200">
                </div> 

				<!--
                Alamat
                <div class="controls">
                <input id="Pengaduan_nama_pelapor" class="span5" type="text" name="KonsultasiHukum[alamat]" maxlength="200">
                </div>              


                Email
                <div class="controls">
                <input id="Pengaduan_nama_pelapor" class="span3" type="text" name="KonsultasiHukum[email]" maxlength="200">
                </div>             


                Telp 
                <div class="controls">
                <input id="Pengaduan_nama_pelapor" class="span3" type="text" name="KonsultasiHukum[telp]" maxlength="200">
                </div>             



                Judul Pertanyaan
                <div class="controls">
                <input id="Pengaduan_nama_pelapor" class="span4" type="text" name="KonsultasiHukum[judul]" maxlength="200">
                </div> 
				-->	

                Tanggapan
                <div class="controls">
                    <textarea id="Posting_deskripsi" name="isi" class="span5" cols="40" rows="2"></textarea>
                </div> 


                <div style="text-align:center">
                <button id="yw0" class="btn btn-primary" name="yt0" type="submit">
                <i class="icon-ok icon-white"></i>
                Kirim
                </button>
                </div>

                </form>
                </div>
				
				</div>	
				
				<!--
				<div class="spanpengaduan" style="margin-top:30px;">
				 
				<?php
				/*
				$replyKonsultasi = ReplyKonsultasiHukum::model()->findAll('id_konsultasi_hukum='.$model->id);
				
				echo "<strong>".count($replyKonsultasi). " tanggapan</strong>";
				echo '<hr class="hrpengumuman" /><br />';
				foreach($replyKonsultasi as $row){
				*/
				?>
				<div class="div-indexpengumuman3">
				 <span class="tglpengumuman">
				 <strong><?php //echo $row->nama; ?><br />
				 <?php //echo date('d-m-Y',strtotime($row->created_time)); ?>
				 </strong>
				 </span>
				 <br />
				 <?php //echo $row->reply; ?>

				</div>    
				
				
				<hr class="hrpengumuman" />
				
				
				<?php
				//}
				?> 
				</div>		
				-->


    </div>            

</div>

